'xor problem resolvido com funcao gaussiana naao-linear'

from radialBasisFunctions import gaussiana
from numpy import matrix

t1 = matrix([1,1])
t2 = matrix([0,0])
input = matrix([[1,1], [0,1], [0,0] , [1,0]])

def main():
    for i in input:
        r1 = gaussiana(i, t1)
        r2 = gaussiana(i, t2)
        print 'Entrada:' + str(i)+' R1: '+str(r1)+' R2: '+str(r2)+'\n'
        
main()